#include <stdio.h>

int main(int argc, char *argv[]) 
{
	int sum[30],n,m;
	scanf("%d",&n);
	sum[n]=1;
	for(int day=n;day>0;day--)
		sum[day-1]=2*(sum[day]+day-1);
	if(sum[1]>1)printf("The monkey got %d peaches in first day.\n",sum[1]);
	else printf("The monkey got 1 peach in first day.\n");
}